<?php

class CommonAction extends HomeBaseAction{

	public function __construct(){
		parent::__construct();

        // 判断是否有cookie
        if(!uid()){
            redirect('/member/login.html');
        }
        /* 未读站内信 */
        $info_num = M('member_info')->where(array(
        	'to_uid' => uid(),
        	'status' => 0,
        ))->count();

        $this->info_num = $info_num;
	}
}